#define _CRT_SECURE_NO_WARNINGS  1
#include <stdio.h>
int main()
{
	int arr[10][21] = { 0 };
	
	for (int i = 1; i < 10; i++)
	{
		for (int j =1; j < 21; j++)
		{
			arr[0][10] = 1;
			arr[i][j] = arr[i - 1][j - 1] + arr[i - 1][j + 1];
			
		}

	}

	for (int i = 0; i < 10; i++)
	{
		for (int j = 1; j < 21; j++)
		{
			if (arr[i][j] != 0)
			{
				printf("%d ", arr[i][j]);
			}
			else
			{
				printf("  ");
			}
		}printf("\n");
		printf("\n");
	}
	return 0;
}
